package com.svms.service.bo;

import java.util.List;

import com.svms.service.vo.AlertVO;
import com.svms.service.vo.VehicleAlertVO;

public class testtt {

	public static void main(String[] args) {
		AlertBO alertBO = new AlertBO();
		List<AlertVO> lst = alertBO.getAllAlerts();

		for (AlertVO alertVO : lst) {
			if (alertVO instanceof VehicleAlertVO) {
				VehicleAlertVO vo = (VehicleAlertVO) alertVO;
				System.out.println("---------");
				System.out.println("Veicle Number " + vo.getVehicleNumber());
				System.out.println("Item Id " + vo.getItemID());
				System.out.println("Due Date " + vo.getDueDate());
				System.out.println("---------");
			}
		}
	}
}
